package com.dfire.soa.mcsao.service;


import com.dfire.soa.mcsao.ITaskThreadService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class TaskThreadService implements ITaskThreadService {

    int sum = 0;

    @Override
    @Async
    public void sayHai(int i2) {
        int i = sum++;
//        System.out.println("start"+i);
        System.out.println("end"+i2);
    }
}
